package com.swind.fast.modules.app.borrun.recruit.service.impl;

import com.swind.fast.modules.app.borrun.recruit.entity.BrRecruitProjectDetail;
import com.swind.fast.modules.app.borrun.recruit.mapper.BrRecruitProjectDetailMapper;
import com.swind.fast.modules.app.borrun.recruit.service.IBrRecruitProjectDetailService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 博润阳光招募试验项目
 * @Author: swind
 * @Date:   2021-11-20
 * @Version: V1.0
 */
@Service
public class BrRecruitProjectDetailServiceImpl extends ServiceImpl<BrRecruitProjectDetailMapper, BrRecruitProjectDetail> implements IBrRecruitProjectDetailService {

    public BrRecruitProjectDetail getByProjectId(String projectId) {
        QueryWrapper<BrRecruitProjectDetail> queryWrapper = new QueryWrapper<BrRecruitProjectDetail>().eq("project_id", projectId);
        return this.getOne(queryWrapper);
    }

}
